<h1>更新用户 api-user/:id/edit</h1>
<form action='/admin/api-user/{{this.id}}/edit' method='POST'>
  <!--  原生的method没有put请求，添加一个input type hidden设置put-->
  <input type='hidden' name='_method' value='PUT' />
  <div class='mb-3'>
    <label for='username' class='form-label'>用户名称</label>
    <input
      type='text'
      class='form-control'
      id='username'
      name='username'
      value='{{this.username}}'
      placeholder='请输入用户名称'
    />
  </div>
  <div class='mb-3'>
    <label for='password' class='form-label'>密码</label>
    <input
      type='text'
      class='form-control'
      id='password'
      name='password'
      value='{{this.password}}'
      placeholder='请输入密码'
    />
  </div>
  <div class='mb-3'>
    <label for='mobile' class='form-label'>用户手机号</label>
    <input
      type='text'
      class='form-control'
      id='mobile'
      name='mobile'
      value='{{this.mobile}}'
      placeholder='请输入用户手机号'
    />
  </div>
  <div class='mb-3'>
    <label for='email' class='form-label'>用户邮箱</label>
    <input
      type='email'
      class='form-control'
      id='email'
      name='email'
      value='{{this.email}}'
      placeholder='请输入用户邮箱'
    />
  </div>
  <div class='mb-3'>
    <label for='status' class='form-label'>启用状态</label>
    <div>
      <div class='form-check form-check-inline'>
        <input
          class='form-check-input'
          type='radio'
          value='1'
          name='status'
          id='status1'
        />
        <label class='form-check-label' for='status1'>
          有效
        </label>
      </div>
      <div class='form-check form-check-inline'>
        <input
          class='form-check-input'
          type='radio'
          value='0'
          name='status'
          id='status0'
          checked
        />
        <label class='form-check-label' for='status0'>
          无效
        </label>
      </div>
    </div>
  </div>
  <div class='mb-3'>
    <label for='is_super' class='form-label'>是否超级管理员</label>
    <div>
      <div class='form-check form-check-inline'>
        <input
          class='form-check-input'
          type='radio'
          value='1'
          name='is_super'
          id='is_super1'
        />
        <label class='form-check-label' for='is_super1'>
          是
        </label>
      </div>
      <div class='form-check form-check-inline'>
        <input
          class='form-check-input'
          type='radio'
          value='0'
          name='is_super'
          id='is_super0'
          checked
        />
        <label class='form-check-label' for='is_super0'>
          否
        </label>
      </div>
    </div>
  </div>
  <div class='mb-3'>
    <label for='sort' class='form-label'>排序编号</label>
    <input
      type='number'
      class='form-control'
      id='sort'
      name='sort'
      value='{{this.sort}}'
      placeholder='列表排序值'
    />
  </div>
  <div style='display: flex;justify-content: center'>
    <button type='submit' class='btn btn-primary'>更新用户</button>
  </div>
</form>